/* Split-panel generation layout: prompt left, history right */
.gen-split {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    min-height: calc(100vh - 70px);
}

.gen-left {
    flex: 1;
    max-width: 700px;
    min-width: 0;
}

.gen-right {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.gen-right-header {
    font-size: 16px;
    font-weight: 700;
    color: #d1d5db;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gen-right-header a {
    font-size: 12px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}
.gen-right-header a:hover { text-decoration: underline; }

.gen-history {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    padding-right: 4px;
}
.gen-history::-webkit-scrollbar { width: 4px; }
.gen-history::-webkit-scrollbar-track { background: transparent; }
.gen-history::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.gen-history::-webkit-scrollbar-thumb:hover { background: #555; }

.gen-history-item {
    background: #111;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.gen-history-item:hover {
    border-color: rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.04);
}

.gen-history-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #0d0d0d;
    flex-shrink: 0;
}

.gen-history-info {
    flex: 1;
    min-width: 0;
}

.gen-history-prompt {
    font-size: 12px;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.gen-history-meta {
    font-size: 10px;
    color: #4b5563;
    display: flex;
    gap: 8px;
    align-items: center;
}

.gen-history-status {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}
.gen-history-status.completed { background: rgba(34,197,94,0.1); color: #86efac; }
.gen-history-status.processing { background: rgba(234,179,8,0.1); color: #fde68a; }
.gen-history-status.failed { background: rgba(239,68,68,0.1); color: #fca5a5; }
.gen-history-status.timed_out { background: rgba(239,68,68,0.1); color: #fca5a5; }

.gen-history-empty {
    text-align: center;
    color: #4b5563;
    font-size: 13px;
    padding: 40px 16px;
}

/* Video thumbnail in history */
.gen-history-thumb-video {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #0d0d0d;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .gen-split {
        flex-direction: column;
        padding: 24px 16px 40px;
    }
    .gen-left { max-width: 100%; }
    .gen-right {
        width: 100%;
        max-height: 400px;
    }
}
