.media-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafaf9;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.media-dropzone:hover,
.media-dropzone.dz-drag-hover {
    border-color: #0a1628;
    background: #f0ebe3;
}
.media-dropzone.dz-max-files-reached {
    opacity: 0.5;
    pointer-events: none;
}
.media-dropzone .dz-message {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}
.media-dropzone .dz-message i {
    font-size: 2rem;
    color: #9ca3af;
    display: block;
    margin-bottom: 0.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.media-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: grab;
}
.media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.media-card-ghost {
    opacity: 0.4;
    transform: scale(0.95);
}

.media-card-img {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
}
.media-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(10, 22, 40, 0.8);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: capitalize;
    backdrop-filter: blur(4px);
}

.media-card-cover {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #b8860b;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.media-card-actions {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #fff;
    justify-content: center;
}

.media-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.media-btn-cover {
    background: #fef3c7;
    color: #b8860b;
}
.media-btn-cover:hover {
    background: #b8860b;
    color: #fff;
}
.media-btn-delete {
    background: #fee2e2;
    color: #dc2626;
}
.media-btn-delete:hover {
    background: #dc2626;
    color: #fff;
}

.media-category-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.media-tab {
    padding: 0.6rem 1.2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.media-tab:hover {
    color: #0a1628;
}
.media-tab.active {
    color: #0a1628;
    border-bottom-color: #b8860b;
    font-weight: 600;
}

.media-tab-panel {
    display: none;
}
.media-tab-panel.active {
    display: block;
}

.media-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    transition: opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.media-toast-success { background: #059669; }
.media-toast-error { background: #dc2626; }

.media-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(4px);
}
.media-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    position: relative;
}
.media-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}
.media-video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.media-video-card .media-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    .media-dropzone {
        padding: 1.5rem;
    }
    .media-category-tabs {
        gap: 0;
    }
    .media-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}
