:root {
    --bg-color: #d8d8d8;
    --text-main: #5f5f5f;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.35);
    --accent: #8c8a54;
}

body {
    background: var(--bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#book-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    overflow: hidden;
}

#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;

    transition: opacity 0.3s ease;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: #888;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#flipbook-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.75s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s ease;
    transform-origin: center center;
    flex-shrink: 0;
    z-index: 10;
    will-change: transform;
    opacity: 0;
}

#book-container.zooming-out #flipbook-wrapper {
    transition: transform 0.25s cubic-bezier(0.4, 0, 1, 1);
}

#zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    overflow: auto;
    overscroll-behavior: none;
    background: var(--bg-color);
    z-index: 50;
}

#zoom-overlay.active {
    display: block;
    cursor: grab;
}

#zoom-overlay.active #flipbook-wrapper,
#zoom-overlay.active #flipbook-wrapper * {
    pointer-events: none !important;
}

#zoom-stage {
    position: relative;
}

#zoom-overlay #flipbook-wrapper {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

#flipbook {
    visibility: hidden;
    border: none;
}

.page {
    background-color: #fff;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.stf__block {
    will-change: transform;
}

.page-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -24px;
    margin-left: -24px;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-left-color: #888;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

canvas {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.toc-links {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.toc-link {
    position: absolute;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
}

.toc-link:hover,
.toc-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.16);
    outline: none;
}

#scrubber-wrap, .nav-btn, #page-info-wrap, #zoom-level-bubble, #scroll-pages-bubble, #keyboard-hints {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
}

#btn-first-wrap, #btn-last-wrap {
    display: none;
}

#scrubber-btn-contents,
#scrubber-btn-undo {
    z-index: 10002;
}

.scrubber-skip-btn {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    color: #555;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;

    transition: color 0.15s ease, opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 1, 0.3, 1), left 0.25s cubic-bezier(0.2, 1, 0.3, 1);
}

#scrubber-btn-contents svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s ease;
}

#scrubber-btn-contents .icon-close {
    opacity: 0;
}

#scrubber-btn-contents.toc-open .icon-contents {
    opacity: 0;
}

#scrubber-btn-contents.toc-open .icon-close {
    opacity: 1;
}

@media (hover: hover) {
    .scrubber-skip-btn:hover {
        color: #333;
    }
}

.scrubber-skip-btn.scrubber-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scrubber-skip-btn.scrubber-visible:active {
    color: #333;
    transform: translateY(0) scale(0.92);
}

#scrubber-btn-undo {
    opacity: 0;
    pointer-events: none;
}

#scrubber-btn-undo.scrubber-visible.toc-undo-available {
    opacity: 1;
    pointer-events: auto;
}

#scrubber-wrap {
    position: fixed;
    z-index: 9999;
    width: 0;

    height: 32px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    gap: 6px;

    border-radius: 40px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);

    opacity: 0;
    pointer-events: none;

    clip-path: inset(0 calc(50% - 55px) 0 calc(50% - 55px) round 40px);
    transform: translateY(6px);

    transition: opacity 0.2s ease,
        transform 0.25s cubic-bezier(0.2, 1, 0.3, 1),
        clip-path 0.3s cubic-bezier(0.2, 1, 0.3, 1),
        width 0.25s cubic-bezier(0.2, 1, 0.3, 1),
        left 0.25s cubic-bezier(0.2, 1, 0.3, 1);
}

#scrubber-wrap.scrubber-preview {
    opacity: 1;
    pointer-events: none;
    transform: translateY(0);
}

#scrubber-wrap.scrubber-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    clip-path: inset(0 0% 0 0% round 40px);
}

#scrubber-label {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#scrubber-wrap.scrubber-visible #scrubber-label,
#scrubber-wrap.scrubber-closing #scrubber-label {
    display: none;
}

#scrubber {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease 0.15s;
}

#scrubber:focus-visible {
    outline: revert;
    outline-offset: 4px;
}

body.suppress-focus-ring :focus-visible {
    outline: none;
}

#scrubber-wrap.scrubber-visible #scrubber {
    opacity: 1;
}

#scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

#scrubber::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #333;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

#scrubber::-webkit-slider-thumb:hover {
    transform: scale(1.4);
    background: #000;
}

#scrubber::-moz-range-thumb:hover {
    transform: scale(1.4);
    background: #000;
}

#controls {
    position: fixed;

    z-index: 10003;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 8px;

    background: none;
    border: none;
    box-shadow: none;
    padding: 0;

    opacity: 0.2;
    transition: opacity 0.4s ease;
}

#controls:hover,
#controls.ui-active,
#controls.scrubber-open {
    opacity: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 48px;
    width: 48px;
    padding: 0;

    border-radius: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);

    color: #bbb;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;

    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.4s ease;
}

#controls.ui-active .nav-btn {
    color: #555;
}

@media (hover: hover) and (pointer: fine) {
    #controls:hover .nav-btn {
        color: #555;
    }

    .nav-btn:hover, #page-info-wrap:hover {
        background: rgba(255, 255, 255, 0.75);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.07);
    }

}

.nav-btn:active, #page-info-wrap:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-btn.nav-disabled,
.scrubber-skip-btn.nav-disabled {
    pointer-events: none;
    opacity: 0.3 !important;
}

.scrubber-skip-btn.nav-disabled:not(.scrubber-visible) {
    opacity: 0 !important;
}

#controls:hover .nav-btn.nav-disabled,
#controls.ui-active .nav-btn.nav-disabled {
    color: #bbb;
}

.nav-btn svg {
    display: block;
    flex-shrink: 0;
}

#page-info-wrap {

    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    margin: 0;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    height: 48px;
    min-width: 164px;
    padding: 0 20px;
    overflow: visible;
    cursor: pointer;

    border-radius: 40px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    user-select: none;
    transition: opacity 0.4s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#page-info {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #bbb;
    letter-spacing: 0.03em;
    pointer-events: none;
    white-space: nowrap;
    transition: color 0.4s ease, opacity 0.15s ease;
}

#page-info.page-info-fade {
    opacity: 0;
}

#controls.ui-active #page-info {
    color: #555;
}

@media (hover: hover) and (pointer: fine) {
    #controls:hover #page-info {
        color: #555;
    }
}

#scrubber-bubble {
    position: fixed;
    z-index: 9999;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 0 12px;
    height: 32px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#scrubber-bubble.bubble-visible {
    opacity: 1;
}

#zoom-level-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0 12px;
    height: 32px;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

@media (hover: hover) and (pointer: fine) {
    #zoom-btn:hover+#zoom-level-bubble,
    div:hover>#zoom-level-bubble {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        background: rgba(255, 255, 255, 0.75);
    }
}

#zoom-level-bubble.zoom-bubble-flash {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    background: rgba(255, 255, 255, 0.75);
}

#scroll-pages-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0 12px;
    height: 32px;
    display: none;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

@media (hover: hover) and (pointer: fine) {
    #scroll-pages-bubble {
        display: flex;
    }

    #page-info-wrap:hover #scroll-pages-bubble {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        background: rgba(255, 255, 255, 0.75);
    }

    #page-info-wrap.scrubber-active #scroll-pages-bubble {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
        pointer-events: none;
    }
}

.nav-btn-wrap {
    position: relative;
    display: inline-flex;
}

.btn-tip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0 12px;
    height: 32px;
    display: none;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;

    z-index: 10003;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
}

@media (hover: hover) and (pointer: fine) {
    .btn-tip {
        display: flex;
    }

    .nav-btn-wrap:hover .btn-tip,
    .scrubber-skip-btn:hover .btn-tip {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        background: rgba(255, 255, 255, 0.75);
    }

    .nav-btn-wrap:has(.nav-disabled) .btn-tip,
    .scrubber-skip-btn.nav-disabled .btn-tip {
        display: none;
    }

    .scrubber-skip-btn.toc-open .btn-tip {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(4px);
    }

    #help-btn-wrap.help-open .btn-tip {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(4px);
    }
}

#book-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#book-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#keyboard-hints {
    position: fixed;
    z-index: 9999;

    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 14px 20px;

    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;

    bottom: auto;
    left: auto;
    transform: none;

    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 1;
}

#keyboard-hints.hints-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
}

#keyboard-hints strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

#keyboard-hints ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#keyboard-hints li {
    display: flex;
    align-items: center;
    gap: 6px;
}

kbd {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
}

#toc-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

#toc-sheet-backdrop.toc-sheet-visible {
    pointer-events: auto;
}

#toc-sheet {
    position: fixed;
    z-index: 10001;
    left: 16px;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 14px 0;
    transform-origin: bottom left;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.2s ease;
}

#toc-sheet.toc-sheet-visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

#toc-sheet-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px;
    padding: 2px 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

#toc-sheet-title svg {
    flex-shrink: 0;
}

#toc-sheet-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    padding: 10px 0;
    --fade-top: 0px;
    --fade-bottom: 0px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--fade-top), black calc(100% - var(--fade-bottom)), transparent);
    mask-image: linear-gradient(to bottom, transparent, black var(--fade-top), black calc(100% - var(--fade-bottom)), transparent);
}

#toc-sheet-list.toc-sheet-fade-top {
    --fade-top: 24px;
}

#toc-sheet-list.toc-sheet-fade-bottom {
    --fade-bottom: 24px;
}

.toc-sheet-header,
.toc-sheet-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 16px);
    margin: 0 8px;
    text-align: left;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.toc-sheet-label {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.toc-sheet-entry {
    padding-left: 24px;
}

.toc-sheet-header {
    font-weight: 700;
}

@media (hover: hover) {

    .toc-sheet-header:hover,
    .toc-sheet-entry:hover {
        background: rgba(0, 0, 0, 0.06);
    }
}

.toc-sheet-header:active,
.toc-sheet-entry:active {
    background: rgba(0, 0, 0, 0.1);
    transition-duration: 0.05s;
}

.toc-sheet-page {
    flex-shrink: 0;
    color: #999;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.toc-sheet-header.toc-sheet-current,
.toc-sheet-entry.toc-sheet-current,
.toc-sheet-header.toc-sheet-current:hover,
.toc-sheet-entry.toc-sheet-current:hover,
.toc-sheet-header.toc-sheet-current:active,
.toc-sheet-entry.toc-sheet-current:active {
    background: none;
    cursor: default;
}

.toc-sheet-dot {
    position: relative;
    flex-shrink: 0;
    margin-left: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.toc-sheet-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);

    will-change: transform, opacity;
    animation-name: toc-dot-ripple;
    animation-duration: 0.85s;
    animation-timing-function: ease-out;
    animation-iteration-count: 2;
    animation-fill-mode: forwards;
}

@keyframes toc-dot-ripple {
    from {
        transform: scale(1);
        opacity: 0.6;
    }

    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

html.simulated-fs body {
    height: 100dvh;
}

html.simulated-fs #controls {
    opacity: 0 !important;
    pointer-events: none !important;
}

html.simulated-fs #controls.ui-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

@media (max-width: 767px) {
    #book-container {
        overflow: hidden;
        align-items: center;
    }

    #controls {
        gap: 10px;
        bottom: 16px;
        opacity: 1 !important;
    }

    .nav-btn {
        height: 44px;
        width: 44px;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .nav-btn:active {
        transform: translateY(0px) scale(0.92);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    #page-info-wrap {
        position: relative;
        bottom: unset;
        left: unset;
        transform: none !important;
        height: 44px;
        padding: 0 12px;
        flex: 0 0 130px;
        min-width: 130px;
        white-space: nowrap;
        opacity: 1 !important;
        overflow: visible;
        margin: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    #page-info-wrap:active {
        transform: scale(0.96) !important;
    }

    #help-btn-wrap {
        display: none;
    }

    .scrubber-skip-btn {
        width: 36px;
        height: 36px;
    }

    #scrubber-wrap {
        height: 36px;
    }

    #scrubber {
        height: 44px;
        background: transparent;
    }

    #scrubber::-webkit-slider-runnable-track {
        height: 2px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
    }

    #scrubber::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        margin-top: -9px;
    }

    #scrubber::-moz-range-track {
        height: 2px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
    }

    #scrubber::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }

}

@media (hover: none) and (pointer: coarse) and (min-width: 768px) {
    #help-btn-wrap {
        display: none;
    }

    #scrubber {
        height: 44px;
        background: transparent;
    }

    #scrubber::-webkit-slider-runnable-track {
        height: 2px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
    }

    #scrubber::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
        margin-top: -9px;
    }

    #scrubber::-moz-range-track {
        height: 2px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
    }

    #scrubber::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
