/* ZLH video duration control — isolated so its reference-matched layout wins theme rules. */

@media (min-width: 1001px) {
    #zlh-video-gen .zvg-sidebar {
        width: 420px;
    }
}

#zlh-video-gen .zvg-duration-slider {
    box-sizing: border-box;
    width: 100%;
    padding: 15px 16px 14px;
    border: 1px solid #353941;
    border-radius: 14px;
    background: #1c1f26;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

#zlh-video-gen .zvg-duration-slider-title {
    display: block;
    margin: 0 0 14px;
    color: #777d89;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

#zlh-video-gen .zvg-duration-control-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

#zlh-video-gen .zvg-duration-track-wrap {
    flex: 1 1 auto;
    min-width: 0;
    padding: 3px 0 0;
}

#zlh-video-gen input.zvg-duration-range {
    --zvg-duration-progress: 0%;
    display: block;
    width: 100%;
    height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#zlh-video-gen input.zvg-duration-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 7px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #737985 var(--zvg-duration-progress), #30343c var(--zvg-duration-progress));
}

#zlh-video-gen input.zvg-duration-range::-webkit-slider-thumb {
    width: 4px;
    height: 16px;
    margin-top: -4.5px;
    border: 0;
    border-radius: 2px;
    background: #f8fafc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    appearance: none;
    -webkit-appearance: none;
}

#zlh-video-gen input.zvg-duration-range::-moz-range-track {
    width: 100%;
    height: 7px;
    border: 0;
    border-radius: 4px;
    background: #30343c;
}

#zlh-video-gen input.zvg-duration-range::-moz-range-progress {
    height: 7px;
    border-radius: 4px;
    background: #737985;
}

#zlh-video-gen input.zvg-duration-range::-moz-range-thumb {
    width: 4px;
    height: 16px;
    border: 0;
    border-radius: 2px;
    background: #f8fafc;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

#zlh-video-gen input.zvg-duration-range:focus-visible {
    outline: 2px solid rgba(165, 180, 252, 0.8);
    outline-offset: 4px;
}

#zlh-video-gen .zvg-duration-ticks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin: 6px 0 0;
    color: #b2b6c0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

#zlh-video-gen .zvg-duration-ticks span {
    position: relative;
    min-width: 0;
    text-align: center;
}

#zlh-video-gen .zvg-duration-ticks span:first-child {
    text-align: left;
}

#zlh-video-gen .zvg-duration-ticks span:last-child {
    text-align: right;
}

#zlh-video-gen .zvg-duration-ticks span::before {
    position: absolute;
    top: -15px;
    left: 50%;
    width: 1px;
    height: 4px;
    background: rgba(226, 232, 240, 0.15);
    content: '';
}

#zlh-video-gen .zvg-duration-ticks span:first-child::before {
    left: 1px;
}

#zlh-video-gen .zvg-duration-ticks span:last-child::before {
    right: 1px;
    left: auto;
}

#zlh-video-gen label.zvg-duration-number-box {
    display: flex;
    flex: 0 0 90px;
    align-items: center;
    box-sizing: border-box;
    width: 90px;
    height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #292d35;
    color: #747a86;
}

#zlh-video-gen label.zvg-duration-number-box input {
    flex: 1 1 auto;
    box-sizing: border-box;
    width: 42px;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f1f3f7;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 36px;
    appearance: textfield;
    -moz-appearance: textfield;
}

#zlh-video-gen label.zvg-duration-number-box input::-webkit-inner-spin-button,
#zlh-video-gen label.zvg-duration-number-box input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

#zlh-video-gen label.zvg-duration-number-box span {
    flex: 0 0 auto;
    margin: 0 0 0 6px;
    color: #747a86;
    font-size: 11px;
    font-weight: 700;
}

#zlh-video-gen label.zvg-duration-number-box:focus-within {
    box-shadow: 0 0 0 1px rgba(165, 180, 252, 0.65);
}

@media (max-width: 1000px) {
    #zlh-video-gen .zvg-duration-control-row {
        gap: 14px;
    }

    #zlh-video-gen label.zvg-duration-number-box {
        flex-basis: 78px;
        width: 78px;
    }
}
