/**
 * AI创作面板 · 聊天工具扩展样式（进度条、媒体缩略图、预览遮罩）
 * 独立命名空间 ai-create-chat-*
 */

.ai-create-chat-send-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    width: 100%;
    flex-shrink: 0;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    color: #aaa;
}
.ai-create-chat-send-progress-wrap[hidden] {
    display: none !important;
}
.ai-create-chat-send-progress-bar {
    flex: 1;
    height: 4px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}
.ai-create-chat-send-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 30%;
    background: #6b8cff;
    border-radius: 2px;
    animation: ai-create-chat-progress-indeterminate 1s ease-in-out infinite;
}
@keyframes ai-create-chat-progress-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}
.ai-create-chat-send-progress-text {
    flex-shrink: 0;
    font-size: 11px;
    color: #888;
}

.ai-create-chat-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    list-style: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}
.ai-create-chat-media-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.ai-create-chat-media-item img,
.ai-create-chat-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.ai-create-chat-media-item.is-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 11px;
    color: #888;
    cursor: pointer;
}

.ai-create-chat-media-preview-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}
.ai-create-chat-media-preview-mask img,
.ai-create-chat-media-preview-mask video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ai-create-chat-media-preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.ai-create-chat-media-preview-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

