/* naonax\static\css\utility\video_snapshot.css */
:root {
    --vs-bg: #f5f8fd;
    --vs-card: #ffffff;
    --vs-line: #d8e2f0;
    --vs-line-strong: #c7d4e8;
    --vs-text: #17202f;
    --vs-sub: #607087;
    --vs-primary: #2754c5;
    --vs-primary-dark: #18398f;
    --vs-soft: #eef4ff;
    --vs-shadow: 0 16px 34px rgba(29, 48, 95, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3fb 100%);
    color: var(--vs-text);
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

button,
input {
    font: inherit;
}

.vs-shell {
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
}

.vs-topbar {
    padding-top: 18px;
}

.vs-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--vs-line);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(29, 48, 95, 0.06);
}

.vs-topbar-left,
.vs-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vs-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--vs-soft);
    border: 1px solid #d7e4ff;
    color: var(--vs-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.vs-top-btn {
    font-family: inherit;
}

.vs-page {
    padding: 24px 0 44px;
}

.vs-hero {
    margin-bottom: 14px;
}

.vs-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--vs-primary);
}

.vs-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.24;
}

.vs-hero-desc {
    margin: 14px 0 0;
    max-width: 840px;
    font-size: 16px;
    line-height: 1.72;
    color: var(--vs-sub);
}

.vs-panel {
    background: var(--vs-card);
    border: 1px solid var(--vs-line);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--vs-shadow);
}

.vs-upload-panel {
    margin-bottom: 14px;
}

.vs-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 14px;
}

.vs-label {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.vs-dropzone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    border: 1px dashed var(--vs-line-strong);
    border-radius: 18px;
    background: #fbfdff;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.vs-dropzone:hover,
.vs-dropzone:focus-visible,
.vs-dropzone.dragover,
.vs-video-stage-wrap.dragover {
    border-color: var(--vs-primary);
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px rgba(39, 84, 197, 0.14);
    outline: none;
}

.vs-dropzone-icon {
    font-size: 30px;
    line-height: 1;
}

.vs-dropzone-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--vs-text);
}

.vs-dropzone-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--vs-sub);
}

.vs-dropzone-hint {
    font-size: 12px;
    color: #637591;
}

.vs-help {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--vs-sub);
}

.vs-quick-help {
    padding: 14px 16px;
    border: 1px dashed var(--vs-line-strong);
    border-radius: 18px;
    background: #f9fbff;
}

.vs-help-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--vs-primary);
}

.vs-quick-help ol {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--vs-text);
    font-size: 13px;
    line-height: 1.75;
}

.vs-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    gap: 14px;
    align-items: start;
}

.vs-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vs-panel-head h2 {
    margin: 0;
    font-size: 22px;
}

.vs-panel-head p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--vs-sub);
}

.vs-file-meta,
.vs-result-count {
    padding: 8px 12px;
    border-radius: 12px;
    background: #f4f7fc;
    border: 1px solid #e4ebf5;
    font-size: 12px;
    font-weight: 700;
    color: #4f5f76;
    white-space: nowrap;
}

.vs-video-stage-wrap {
    position: relative;
    min-height: 420px;
    border: 1px solid #e4ebf5;
    border-radius: 20px;
    background: #f6f9fd;
    overflow: hidden;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.vs-empty-state {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--vs-sub);
    text-align: center;
}

.vs-empty-icon {
    font-size: 38px;
}

.vs-video-stage {
    padding: 16px;
}

.vs-video-board {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0;
    cursor: crosshair;
    user-select: none;
}

.vs-video {
    display: block;
    width: min(100%, 920px);
    max-width: 100%;
    height: auto;
    background: #000;
    border-radius: 16px;
}

.vs-selection-layer {
    position: absolute;
    display: none;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.34);
    background: rgba(59, 130, 246, 0.16);
    pointer-events: none;
}

.vs-crosshair-layer {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
}

.vs-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.vs-btn.small {
    min-width: 104px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

.vs-btn.primary {
    background: var(--vs-primary);
    color: #ffffff;
}

.vs-btn.primary:hover {
    background: var(--vs-primary-dark);
}

.vs-btn.primary.soft {
    background: #ebf2ff;
    color: var(--vs-primary);
}

.vs-btn.primary.soft:hover {
    background: #dfeaff;
}

.vs-btn.line {
    background: #ffffff;
    color: var(--vs-text);
    border-color: var(--vs-line);
}

.vs-btn:disabled {
    background: #e8edf6 !important;
    color: #90a0b5 !important;
    border-color: #d7e0ec !important;
    cursor: not-allowed;
    box-shadow: none;
}

.vs-btn:disabled:hover {
    background: #e8edf6 !important;
}

.vs-time-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #fbfdff;
    border: 1px solid #e6edf7;
}

.vs-time-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 14px;
}

.vs-time-label {
    color: var(--vs-sub);
}

.vs-time-divider {
    color: #8a98ac;
}

#timeSlider {
    width: 100%;
}

.vs-selection-info {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7faff;
    border: 1px solid #e0eaf8;
    font-size: 13px;
    line-height: 1.65;
    color: #4f6078;
}

.vs-result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vs-result-empty {
    padding: 18px;
    border: 1px dashed var(--vs-line-strong);
    border-radius: 16px;
    background: #fafcff;
    color: var(--vs-sub);
    font-size: 13px;
    text-align: center;
}

.vs-result-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    background: #fbfdff;
}

.vs-result-thumb-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: #f0f4fa;
    border: 1px solid #dce7f4;
}

.vs-result-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.vs-result-body {
    min-width: 0;
}

.vs-result-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}

.vs-result-topline strong {
    font-size: 14px;
}

.vs-result-meta {
    margin-top: 6px;
    color: var(--vs-sub);
    font-size: 12px;
}

.vs-result-actions {
    margin-top: 12px;
}

.is-hidden {
    display: none;
}

@media (max-width: 980px) {
    .vs-upload-grid,
    .vs-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vs-shell {
        width: min(100% - 20px, 100%);
    }

    .vs-topbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .vs-topbar-left,
    .vs-topbar-right {
        width: 100%;
    }

    .vs-topbar-right .vs-btn,
    .vs-topbar-left .vs-top-link,
    .vs-dropzone .vs-btn {
        width: 100%;
    }

    .vs-page {
        padding-top: 20px;
    }

    .vs-hero h1 {
        font-size: 28px;
    }

    .vs-hero-desc {
        font-size: 15px;
    }

    .vs-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .vs-video-stage-wrap,
    .vs-empty-state {
        min-height: 300px;
    }

    .vs-panel-head {
        flex-direction: column;
    }

    .vs-file-meta,
    .vs-result-count {
        white-space: normal;
    }

    .vs-control-row .vs-btn {
        width: 100%;
    }

    .vs-result-card {
        grid-template-columns: 1fr;
    }
}
