/* Assets页面容器 - 参考Avatars页面间距 */
.assets-app {
    padding: 32px 40px;
    background: #f4f6fb;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.assets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.assets-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assets-title h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #1f2933;
}

.assets-title p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.assets-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.filter-input,
.filter-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-default {
    background: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    background: #f5f5f5;
    color: #1890ff;
    border-color: #1890ff;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #ff7875;
}

/* 资产内容区域 */
.assets-content {
    min-height: 400px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 视频预览模态框 - 使用base.html风格 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}
/* 图片预览弹窗采用更黑的背景 */
.image-preview-modal.video-modal {
    background-color: rgba(0, 0, 0, 0.9);
}

.dh-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 22, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 1000;
    overflow-y: auto;
}

.dh-modal-content {
    width: min(1100px, 95%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 34px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    position: relative;
}
/* 视频弹窗内容去掉白底/边框/阴影 */
.video-modal .video-modal-content { background: transparent; border: none; box-shadow: none; }

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* 去掉所有弹窗标题区域显示 */
.video-modal .video-modal-header,
.video-modal .video-modal-title { display: none; }

.video-modal-title {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.dh-modal-close {
    color: var(--secondary-text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none;
}

.dh-modal-close-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
}

.dh-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    transform: scale(1.05);
}

.video-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
}
/* 图片预览主体使用黑色背景 */
.image-preview-modal .video-modal-body {
    background: transparent;
}

.dh-modal-body {
    padding: 24px 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.dh-modal-main {
    display: flex;
    gap: 24px;
    flex: 1;
    min-height: 360px;
    overflow: hidden;
}

.modal-media-column {
    flex: 1.1;
    background: #0f172a;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 360px;
}

.modal-script-column {
    flex: 0.9;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ecedf5;
    padding: 20px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
}

@media (max-width: 1024px) {
    .dh-modal-main {
        flex-direction: column;
    }
    .modal-media-column,
    .modal-script-column {
        max-height: none;
    }
}

.video-section {
    flex: 1;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    width: 100%;
}

.video-section video {
    max-width: 100%;
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.45);
}

.dh-modal video {
    max-width: 100%;
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.45);
}

.script-section {
    padding: 0;
    background: transparent;
    border-top: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* 黑色主题下的文案区域（视频/图片弹窗统一深色） */
.video-modal .script-section,
.image-preview-modal .script-section {
    background: transparent;
    border-top: none;
}

.script-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}
.video-modal .script-section h3,
.image-preview-modal .script-section h3 { color: #000; }

.script-section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.script-title {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 768px) {
    .script-section {
        padding: 15px;
    }
}

.script-content {
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #595959;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.video-modal .script-content,
.image-preview-modal .script-content {
    color: #000;
    background: transparent;
    border: none;
}

.modal-script-column .script-content {
    flex: 1;
    overflow: auto;
    background: #f8f8fa;
    border: 1px solid #eceff5;
    border-radius: 12px;
}
.modal-script-column .script-content::-webkit-scrollbar {
    width: 6px;
}
.modal-script-column .script-content::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 3px;
}

.image-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-section .preview-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.35);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-section:hover .video-controls {
    opacity: 1;
}

.action-buttons {
    padding: 16px 0 0 0;
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-buttons .btn {
    min-width: 100px;
    padding: 8px 16px;
}

@media (min-width: 769px) {
    .action-buttons {
        padding: 16px 0 0 0;
        background: none;
        border-top: none;
        justify-content: flex-start;
    }
}

.video-loading,
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

.video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-loading .loading-spinner {
    margin-bottom: 0;
}

.video-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.time-display {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
}

.pagination {
    margin-top: 24px;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
}

/* 资产网格样式 */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.asset-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.asset-card .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.asset-card:hover .play-overlay {
    opacity: 1;
}

.asset-card .play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.asset-card:hover .play-icon {
    transform: scale(1);
}

.asset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.asset-video {
    position: relative;
    aspect-ratio: 9/16;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
    object-position: center;
}

.asset-video img {
    width: 100%;
    height: 100%;
    /* 保持等比显示，避免被裁剪 */
    object-fit: contain;
    background: #f5f5f5;
    object-position: center;
}

.asset-thumbnail {
    position: relative;
    aspect-ratio: 9/16;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
    object-position: center;
}

.asset-thumbnail .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-card:hover .play-overlay {
    opacity: 1;
}

.asset-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.asset-info {
    padding: 16px;
}

.asset-script {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.asset-actions {
    display: flex;
    gap: 8px;
}

.asset-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
}

.asset-title {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.asset-type {
    background: #f0f8ff;
    color: #1890ff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.asset-size {
    font-size: 12px;
    color: #666;
}

.asset-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.asset-actions {
    display: flex;
    gap: 8px;
}

.asset-action-btn {
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.asset-action-btn:hover {
    background: #f5f5f5;
    color: #1890ff;
    border-color: #1890ff;
}

.asset-action-btn.danger:hover {
    background: #fff2f0;
    color: #ff4d4f;
    border-color: #ff4d4f;
}

/* 空状态样式 */
.empty-assets {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-assets .empty-icon {
    font-size: 64px;
    color: #d9d9d9;
    margin-bottom: 16px;
}

.empty-assets h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #666;
}

.empty-assets p {
    margin: 0 0 24px 0;
    color: #999;
}

.empty-assets .btn {
    padding: 10px 20px;
}

/* 资产错误状态 */
.asset-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #ff4d4f;
    background: #fff2f0;
}

.asset-error i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* 搜索无结果 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #d9d9d9;
    margin-bottom: 16px;
}

/* 资产选择状态 */
.asset-card.selected {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.asset-card .selection-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #1890ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-card.selected .selection-indicator {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .assets-app {
        padding: 20px 16px;
        gap: 20px;
    }

    .assets-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .assets-title h1 {
        font-size: 24px;
    }

    .assets-filters {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .assets-content {
        padding: 20px;
    }

    .video-modal-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .video-section {
        height: 50vh;
    }

    .action-buttons .btn {
        min-width: auto;
    }
}

/* 图片预览模态框专用样式 */
.image-preview-modal .image-modal-content {
    max-width: 90vw;
    width: auto;
    /* 让内容尽可能利用视口高度，便于图片等比完整显示 */
    margin: 10px auto;
    height: calc(100vh - 20px);
    max-height: none;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent; /* 去除白色背景 */
    border: none;            /* 去除白色边框 */
    box-shadow: none;        /* 去除阴影边框效果 */
}

.image-preview-modal .image-modal-body {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    min-height: 0; /* 避免压缩容器导致图片显示不全 */
    height: 100%;
    max-height: none;
    overflow: visible;
}

.image-preview-modal .image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin-bottom: 12px;
    /* 让图片按容器大小等比缩放，而不是强行铺满 */
    overflow: hidden;
    background: transparent;
}

.image-preview-modal .preview-image {
    /* 关键：仅用最大宽高限制，保持等比缩放 */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: none;
    background: transparent;
    display: block;
}

/* 移除图片预览的标题占位，仅保留关闭按钮 */
.image-preview-modal .video-modal-title { display: none; }
.image-preview-modal .video-modal-header { display: none; }

/* 新增样式 - 生成动画和状态显示 */
.generating-overlay,
.waiting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.waiting-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.water-column {
    width: 40px;
    height: 60px;
    border: 2px solid rgba(24, 144, 255, 0.8);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(24, 144, 255, 0.6) 0%, rgba(24, 144, 255, 0.9) 100%);
    transition: height 0.3s ease;
    border-radius: 0 0 16px 16px;
}

.water-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.water-stream {
    width: 2px;
    height: 10px;
    background: linear-gradient(180deg, rgba(24, 144, 255, 0.8) 0%, transparent 100%);
    margin-top: 2px;
    animation: stream 1.5s ease-in-out infinite;
}

@keyframes stream {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

.water-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.finalizing-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
}

.asset-progress {
    margin-top: 8px;
    width: 100%;
    max-width: 120px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff 0%, #40a9ff 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-text {
    color: #fff;
    font-size: 11px;
    text-align: center;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.new-asset-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.asset-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.asset-status-warning {
    background: rgba(250, 173, 20, 0.1);
    color: #faad14;
    border: 1px solid rgba(250, 173, 20, 0.2);
}

.asset-status-success {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
    border: 1px solid rgba(82, 196, 26, 0.2);
}

.asset-status-error {
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
    border: 1px solid rgba(255, 77, 79, 0.2);
}

.uploading-final .water-column.full .water-level {
    background: linear-gradient(180deg, rgba(82, 196, 26, 0.8) 0%, rgba(82, 196, 26, 1) 100%);
}

.uploading-final .water-text {
    color: #52c41a;
}

.date-header {
    margin-bottom: 20px;
}

.date-title {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 8px 0;
}

.date-divider {
    height: 1px;
    background: linear-gradient(90deg, #e8e8e8 0%, transparent 100%);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #d9d9d9;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #666;
}

.empty-state p {
    margin: 0 0 24px 0;
    color: #999;
}

.empty-state a {
    color: #1890ff;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

.asset-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(24, 144, 255, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 2;
}

.asset-quick-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
    z-index: 4;
}

.asset-card:hover .asset-quick-delete {
    opacity: 1;
    transform: translateY(0);
}

.asset-quick-delete:hover {
    background: rgba(239, 68, 68, 0.92);
}

.asset-quick-delete:active {
    transform: scale(0.96);
}

.asset-quick-delete:focus {
    outline: none;
}

.asset-quick-delete:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.75);
    outline-offset: 2px;
}

.thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #999;
    text-align: center;
}
