﻿.VideoDownDiv {
    display: flex;
    flex: 1;
    gap: 8px;
    float: left;
    width: calc(100% - 180px);
}

    .VideoDownDiv .videoaction {
        flex: 1; /* 👈 equal width */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

.videoaction {
    float: left;
    width: 100px;
    text-align: center;
}

.videoactionicon {
    font-size: 32px;
}

#FootDownVideoPlay {
    height: 400px;
    width: calc(100% - 20px);
}

#FootDownSnapshot {
    height: 400px;
    width: calc(100% - 20px);
    overflow: hidden;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px; /* spacing between items */
}


    #FootDownSnapshot .snapshotpic {
        width: 100%;
        aspect-ratio: 16 / 9; /* optional: makes them square */
    }

.snapshotpic {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center; /* vertical */
    justify-content: center; /* horizontal */
    border-radius: 10px;
}

.snapshotpicph {
    font-size: 60px;
}

.snapshotpicimg {
    width: 100%;
    height: 100%;
}

.thumb {
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Thumbs */
.snapshotpic, .thumb {
    cursor: zoom-in;
}

.thumb-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #0f1115; /* shows while loading */
    display: flex;
    align-items: center; /* vertical */
    justify-content: center; /* horizontal */
    text-align: center;
    aspect-ratio: 16 / 9; /* 👈 THIS is what you were missing */
    width: 100%;
    background: #0f1115;
    border-radius: 12px;
}

    .thumb-tile i {
        font-size: 140px;
        color: rgba(255,255,255,.45);
    }

    .thumb-tile .thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* spinner only while loading */
    .thumb-tile.is-loading::after {
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 3px solid rgba(255,255,255,.25);
        border-top-color: rgba(255,255,255,.85);
        animation: thumbspin .75s linear infinite;
        pointer-events: none;
    }

    /* optional: slightly dim image while loading (prevents “flash”) */
    .thumb-tile.is-loading .thumb {
        opacity: .85;
    }

@keyframes thumbspin {
    to {
        transform: rotate(360deg);
    }
}

.download-bar {
    display: inline-block;
    width: 140px;
    height: 10px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    background: var(--surface-1);
    border: 1px solid color-mix(in srgb, var(--MainColor) 30%, transparent);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.08), inset 0 10px 25px rgba(0,0,0,0.25);
}

    /* Moving shiny sweep */
    .download-bar::after {
        content: "";
        position: absolute;
        top: -40%;
        left: -60%;
        width: 40%;
        height: 180%;
        transform: skewX(-20deg);
        background: linear-gradient( 90deg, transparent, color-mix(in srgb, var(--MainColor) 70%, white), transparent );
        opacity: 0.85;
        animation: downloadShine 1.2s linear infinite;
    }

@keyframes downloadShine {
    from {
        left: -60%;
    }

    to {
        left: 120%;
    }
}

/* Completed */
.download-bar[complete="true"]::after {
    animation: none;
    opacity: 0;
}

.download-bar[complete="true"] {
    background: color-mix(in srgb, var(--MainColor) 35%, var(--surface-1));
    border-color: var(--MainColor);
}

/* Optional status-based styling */
.download-bar[status="2"] { /* failed */
    background: color-mix(in srgb, #ff4d4d 35%, var(--surface-1));
    border-color: #ff4d4d;
}
