/* ========================================
   图生视频页面样式
   ======================================== */

.video-page {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 32px 24px 64px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.video-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.video-page-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.video-page-content {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

/* 左侧上传面板 */
.video-upload-panel {
    flex: 0 0 38%;
    max-width: 460px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-upload-panel h3,
.video-result-panel h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* 上传区域 */
.video-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg, 12px);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal, 0.25s);
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

.video-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.15);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    color: var(--text-muted);
}

.upload-placeholder svg {
    opacity: 0.5;
}

.upload-placeholder p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-placeholder span {
    font-size: 12px;
    color: var(--text-muted);
}

/* 图片预览 */
.upload-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
}

/* ============================================
   多素材上传网格
   ============================================ */
.media-upload-wrap {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg, 12px);
    padding: 16px;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}
.media-upload-wrap:hover {
    border-color: var(--primary-color, #667eea);
    background: var(--bg-tertiary);
}
.media-upload-wrap.drag-over {
    border-color: var(--primary-color, #667eea);
    background: rgba(102, 126, 234, 0.06);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.15);
}

.media-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
}

.media-upload-item,
.media-upload-add {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-primary, #f9fafb);
    border: 1px solid var(--border-color);
}

.media-upload-item img,
.media-upload-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.media-upload-item .media-upload-audio {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    color: var(--primary-color, #667eea);
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
}

.media-upload-item .media-upload-audio-name {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-upload-item .media-upload-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.media-upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.media-upload-remove:hover {
    background: rgba(239, 68, 68, 0.95);
    transform: scale(1.08);
}

.media-upload-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px dashed var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.media-upload-add:hover {
    border-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
    background: rgba(102, 126, 234, 0.04);
}

.media-upload-hint {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.media-upload-hint .upload-hint-tip {
    color: var(--text-secondary);
}

/* ============================================
   视频配置：比例 chips / pill / slider
   ============================================ */
.video-config-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cfg-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cfg-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.cfg-chip-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
@media (max-width: 768px) {
    .cfg-chip-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cfg-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
    min-height: 62px;
}
.cfg-chip:hover {
    border-color: var(--primary-color, #667eea);
    color: var(--primary-color, #667eea);
}
.cfg-chip.active {
    border-color: var(--primary-color, #667eea);
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 1px var(--primary-color, #667eea) inset;
}

.cfg-chip-icon {
    display: inline-block;
    border: 1.4px solid currentColor;
    border-radius: 2px;
    flex-shrink: 0;
}
.cfg-chip-icon-smart {
    border: none;
    width: auto;
    height: auto;
}

.cfg-pill {
    display: inline-flex;
    padding: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
}
.cfg-pill-item {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cfg-pill-item:hover {
    color: var(--text-primary);
}
.cfg-pill-item.active {
    background: var(--bg-primary, #fff);
    color: var(--primary-color, #667eea);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cfg-slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cfg-slider-row.cfg-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.cfg-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--bg-tertiary, #e5e7eb);
    border-radius: 999px;
    outline: none;
}
.cfg-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color, #667eea);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}
.cfg-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #667eea;
    cursor: pointer;
}

.cfg-slider-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    min-width: 78px;
}
.cfg-slider-value input {
    width: 32px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    text-align: right;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}
.cfg-slider-value input::-webkit-outer-spin-button,
.cfg-slider-value input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cfg-slider-unit {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 旧选择器保留以防被历史代码引用 */
.upload-preview img,
.upload-preview video {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: block;
}

.upload-preview video {
    outline: none;
}

.preview-audio-wrap {
    width: 100%;
    min-height: 220px;
    max-height: 320px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    color: var(--primary-color, #667eea);
}

.preview-audio-wrap svg {
    opacity: 0.85;
}

.preview-audio-name {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-audio-wrap audio {
    width: 90%;
    max-width: 360px;
}

.upload-hint-tip {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.upload-hint-tip kbd {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    font-size: 11px;
    font-family: inherit;
    margin: 0 1px;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
}

.remove-image-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.1);
}

/* 提示词 */
.prompt-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    transition: border-color var(--transition-fast, 0.15s);
    box-sizing: border-box;
}

.prompt-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.prompt-char-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* 配置项 */
.video-config-section .config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.video-config-section .config-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-config-section .config-item label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.video-config-section .config-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.video-config-section .config-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.duration-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.duration-input-wrap input {
    flex: 1;
    -moz-appearance: textfield;
}

.duration-input-wrap input::-webkit-inner-spin-button,
.duration-input-wrap input::-webkit-outer-spin-button {
    opacity: 1;
}

.duration-unit {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 生成按钮 */
.generate-video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md, 8px);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.generate-video-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.generate-video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 右侧结果面板 */
.video-result-panel {
    flex: 1;
    min-width: 0;
}

.video-result-area {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 空状态 */
.result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    color: var(--text-muted);
    text-align: center;
}

.result-empty p {
    font-size: 14px;
}

/* 加载状态 */
.result-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
    width: 100%;
}

.video-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: video-spin 1s linear infinite;
}

@keyframes video-spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.loading-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.queue-info-panel {
    display: flex;
    gap: 16px;
    margin: 10px 0;
    padding: 10px 20px;
    background: var(--bg-tertiary, rgba(255,255,255,0.04));
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.queue-info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 70px;
}
.queue-info-label {
    font-size: 11px;
    color: var(--text-muted, #888);
    letter-spacing: 0.3px;
}
.queue-info-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #6366f1);
}

.progress-bar-container {
    width: 80%;
    max-width: 300px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 视频结果 */
.result-video {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px;
}

.result-video video {
    width: 100%;
    max-height: 500px;
    border-radius: 8px;
    background: #000;
}

.video-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.video-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast, 0.15s);
}

.video-action-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 错误状态 */
.result-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
}

.error-text {
    font-size: 14px;
    color: #ef4444;
}

.retry-btn {
    padding: 8px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md, 8px);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
}

.retry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* 历史记录 */
.video-history {
    margin-top: 24px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
}

.history-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

.history-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-info p {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.video-history h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.video-history-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-secondary);
    transition: all var(--transition-fast, 0.15s);
}

.video-history-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

.video-history-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-history-card-prompt {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-history-card-meta {
    font-size: 11px;
    color: var(--text-muted, #999);
}

.video-history-play-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(135deg, #667eea, #764ba2));
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast, 0.15s);
}

.video-history-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.video-history-load-more {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
}

.video-history-load-more:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ========================================
   生成队列
   ======================================== */

.vq-queue-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-secondary);
    overflow: hidden;
    margin-bottom: 12px;
}

.vq-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.vq-queue-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.vq-queue-clear-btn {
    padding: 3px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px);
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s);
}

.vq-queue-clear-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.vq-queue-list {
    max-height: 280px;
    overflow-y: auto;
}

.vq-queue-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast, 0.15s);
}

.vq-queue-item:last-child {
    border-bottom: none;
}

.vq-queue-item:hover {
    background: var(--bg-tertiary);
}

.vq-queue-item.status-completed {
    opacity: 0.75;
}

.vq-queue-item.status-failed {
    background: rgba(239, 68, 68, 0.03);
}

.vq-queue-item-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vq-queue-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: video-spin 0.8s linear infinite;
}

.vq-queue-item-body {
    flex: 1;
    min-width: 0;
}

.vq-queue-item-prompt {
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.vq-queue-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
}

.vq-queue-item-status {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.vq-queue-item.status-generating .vq-queue-item-status {
    color: var(--primary-color);
}

.vq-queue-item.status-completed .vq-queue-item-status {
    color: #10b981;
}

.vq-queue-item.status-failed .vq-queue-item-status {
    color: #ef4444;
}

.vq-queue-item-order {
    font-size: 10px;
    color: var(--text-muted);
}

.vq-queue-item-progress {
    margin-top: 5px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.vq-queue-item-progress-bar {
    height: 100%;
    background: var(--primary-gradient, linear-gradient(135deg, #667eea, #764ba2));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* 响应式 */
@media (max-width: 768px) {
    .video-page {
        padding: 20px 16px;
    }

    .video-page-content {
        flex-direction: column;
    }

    .video-upload-panel {
        flex: none;
        width: 100%;
    }
}

/* Toast 通知 */
.video-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    z-index: 9999;
    animation: toast-in 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-toast.success {
    background: #10b981;
}

.video-toast.error {
    background: #ef4444;
}

.video-toast.info {
    background: #3b82f6;
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
