/* Pulsix AI — Video Gallery Styles v1.0 */

.video-gallery-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg2);
    cursor: pointer;
    transition: border-color 0.2s;
}
.video-card:hover {
    border-color: var(--green);
}
.video-card .vid-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #111;
}
.video-card .play-overlay {
    position: absolute;
    top: calc(50% - 28px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.video-card .vid-number {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: #4ade80;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    pointer-events: none;
}
.video-card .vid-duration {
    position: absolute;
    bottom: 50px;
    right: 6px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    pointer-events: none;
}
.video-card .vid-actions {
    padding: 6px 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}
.video-card .vid-alt {
    flex: 1;
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Encode Sans', sans-serif;
}
.video-card .vid-alt:focus {
    border-color: var(--green);
    outline: none;
}
.video-card .vid-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text3);
    font-size: 12px;
    transition: border-color 0.2s, color 0.2s;
}
.video-card .vid-btn:hover {
    border-color: var(--green);
    color: var(--green);
}
.video-card .vid-btn.del-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}
.video-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    color: var(--text3);
    font-size: 13px;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 10px;
}
.video-dropzone:hover,
.video-dropzone.dragover {
    border-color: var(--green);
    background: rgba(74,222,128,0.04);
}
.video-empty {
    color: var(--text3);
    font-size: 12px;
    grid-column: 1 / -1;
    padding: 8px 0;
}

/* Video lightbox */
.video-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.video-lightbox-overlay video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    cursor: default;
}
.video-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Encode Sans', sans-serif;
}
