body {
    background: #181a1b;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.main-header {
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px #0008;
}
.img-block {
    background: #23272b;
    border-radius: 16px;
    padding: 2.5rem 2rem 1.5rem 2rem;
    box-shadow: 0 4px 32px #0007;
    max-width: 780px;
    width: 100%;
    text-align: center;
    margin: auto;
    position: relative;
    margin-bottom: 2rem;
}
.slider-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 700px;
    height: 56vh;
    max-height: 420px;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1.2rem auto;
    box-shadow: 0 2px 16px #0005;
    border: 1.5px solid #2a2d2f;
    user-select: none;
    touch-action: none;
}
.slider-img {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 100%;
    object-fit: contain;
    background: #181a1b;
    transition: filter 0.2s;
}
.slider-img.original {
    clip-path: inset(0 50% 0 0);
    transition: clip-path .15s cubic-bezier(.4,1.4,.6,1);
}
/* .slider-img.webp {

} */
.slider-bar {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3.5px;
    height: 100%;
    background: linear-gradient(180deg, #FF00FF 0%, #1976d2 100%);
    cursor: ew-resize;
    z-index: 2;
    border-radius: 2px;
    box-shadow: 0 0 0 2px #0008;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-bar:after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background: #23272b;
    border: 2.5px solid #FF00FF;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px #0007;
    pointer-events: none;
}
.slider-labels {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 3;
    font-size: 1.08em;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 8px #000a;
    padding: 0 18px;
    letter-spacing: 0.01em;
    opacity: 0.93;
}
.webp-label {
    color: #bbb;
    font-size: 1.13em;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.download-link {
    margin: 1.2rem 0 0;
}
.download-link a {
    color: #FF00FF;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1em;
    border: 1.5px solid #FF00FF;
    border-radius: 6px;
    padding: 0.4em 1.2em;
    background: #181a1b;
    transition: background 0.15s, color 0.15s;
    box-shadow: 0 2px 8px #0003;
    display: inline-block;
}
.download-link a:hover {
    background: #FF00FF;
    color: #181a1b;
    text-decoration: none;
}
#error {
    color: #ff5252;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 1.1em;
}
.file-input-label {
    color: #fff;
    font-size: 1.13em;
    font-weight: 500;
    margin-bottom: 0.5em;
    display: block;
    letter-spacing: 0.01em;
}
.custom-file-input {
    background: #23272b;
    color: #FF00FF; /* Magenta text for "Browse" */
    border: 1.5px solid #FF00FF;
    border-radius: 6px;
    padding: 0.5em 1.2em;
    font-size: 1.08em;
    transition: border 0.15s, color 0.15s, background 0.15s;
    width: auto;
    display: inline-block;
    cursor: pointer;
}
.custom-file-input::file-selector-button {
    background: #181a1b;
    color: #FF00FF; /* Magenta text for button */
    border: 1.5px solid #FF00FF;
    border-radius: 6px;
    padding: 0.4em 1.2em;
    font-size: 1.08em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.custom-file-input::file-selector-button:hover {
    background: #FF00FF;
    color: #181a1b;
    border-color: #FF00FF;
}
/* For Webkit/Blink browsers */
input[type="file"].custom-file-input::-webkit-file-upload-button {
    background: #181a1b;
    color: #FF00FF;
    border: 1.5px solid #FF00FF;
    border-radius: 6px;
    padding: 0.4em 1.2em;
    font-size: 1.08em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
input[type="file"].custom-file-input::-webkit-file-upload-button:hover {
    background: #FF00FF;
    color: #181a1b;
    border-color: #FF00FF;
}
.nav-btns {
    margin-bottom: 1.5rem;
}
.nav-btns .btn {
    background: #23272b;
    color: #FF00FF;
    border: 1.5px solid #FF00FF;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.45em 1.3em;
    font-size: 1.07em;
    transition: background 0.15s, color 0.15s;
    box-shadow: 0 2px 8px #0003;
}
.nav-btns .btn:disabled {
    opacity: 0.5;
    color: #aaa;
    border-color: #444;
    background: #23272b;
}
.nav-btns .btn:not(:disabled):hover {
    background: #FF00FF;
    color: #181a1b;
}
#downloadAllBtn {
    background: #23272b;
    color: #FF00FF;
    border: 1.5px solid #FF00FF;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.45em 1.3em;
    font-size: 1.07em;
    transition: background 0.15s, color 0.15s;
    box-shadow: 0 2px 8px #0003;
    margin-bottom: 1.5rem;
}
#downloadAllBtn:disabled {
    opacity: 0.5;
    color: #aaa;
    border-color: #444;
    background: #23272b;
}
#downloadAllBtn:not(:disabled):hover {
    background: #FF00FF;
    color: #181a1b;
}
@media (max-width: 700px) {
    .img-block { padding: 6vw 2vw 4vw 2vw; }
    .slider-container { max-width: 98vw; height: 38vh; max-height: 220px; }
    .slider-labels { font-size: 0.98em; padding: 0 8px; }
}
@media (max-width: 480px) {
    .main-header { font-size: 1.3rem; }
    .slider-labels { font-size: 0.92em; }
    .img-block { padding: 4vw 1vw 3vw 1vw; }
}