.character-progress {
    --progress-color: #a855f7;
    --progress-height: 6px;
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 32px;
    height: 44px;
    isolation: isolate;
}
body[data-page="cover"] .character-progress {
    --progress-color: #ec4899;
    --progress-height: 4px;
}
body[data-page="cover"] #currTime,
body[data-page="cover"] #totalTime {
    flex-shrink: 0;
    transform: translateY(10px);
}
.character-progress-track {
    position: absolute;
    top: 30px;
    left: 16px;
    right: 16px;
    height: var(--progress-height);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    pointer-events: none;
}
.character-progress-fill {
    height: 100%;
    background: var(--progress-color);
    transform: scaleX(0);
    transform-origin: left center;
}
.character-progress-position {
    position: absolute;
    top: 1px;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
}
.character-progress-direction {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}
.character-progress[data-direction="left"] .character-progress-direction {
    transform: scaleX(-1);
}
.character-progress-sprite {
    position: absolute;
    inset: 0;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    opacity: 0;
}
.character-progress[data-state="paused"] [data-expression="paused"],
.character-progress[data-state="playing"] [data-expression="playing"],
.character-progress[data-state="dragging"] [data-expression="dragging"] { opacity: 1; }
.character-progress[data-moving="true"] [data-expression="playing"] {
    animation: characterCrawl .9s steps(2, end) infinite;
}
.character-progress[data-state="dragging"] [data-expression="dragging"] {
    transform: translateY(-4px);
}
@keyframes characterCrawl {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}
.character-progress #progressBar {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    transition: none;
    cursor: default;
}
.character-progress #progressBar:active { cursor: grabbing; }
.character-progress #progressBar:disabled { cursor: default; }
@supports selector(:has(*)) {
    .character-progress #progressBar:focus-visible { outline: none !important; }
    .character-progress:has(#progressBar:focus-visible) .character-progress-track {
        box-shadow: 0 0 0 2px #B5C8FA;
    }
}
.character-progress #progressBar::-webkit-slider-runnable-track {
    height: 44px;
    background: transparent;
    border: 0;
}
.character-progress #progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
    cursor: grab;
}
.character-progress #progressBar:active::-webkit-slider-thumb { cursor: grabbing; }
.character-progress #progressBar:disabled::-webkit-slider-thumb { cursor: default; }
.character-progress #progressBar::-moz-range-track {
    height: 44px;
    background: transparent;
    border: 0;
}
.character-progress #progressBar::-moz-range-progress { background: transparent; }
.character-progress #progressBar::-moz-range-thumb {
    width: 32px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
    cursor: grab;
}
.character-progress #progressBar:active::-moz-range-thumb { cursor: grabbing; }
.character-progress #progressBar:disabled::-moz-range-thumb { cursor: default; }
.page-hidden .character-progress-sprite { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .character-progress-sprite { animation: none !important; }
}
