:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --border: #334155;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --accent: #10b981;
    --danger: #ef4444;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-white);
}

.admin-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: bold;
    color: #38bdf8;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.drop-zone {
    background: rgba(30, 41, 59, 0.6);
    border: 2px dashed #0284c7;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2rem;
}

.drop-zone:hover, .drop-zone.dragover {
    background: rgba(2, 132, 199, 0.15);
    border-color: #38bdf8;
}

.drop-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.media-preview {
    height: 160px;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.media-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.media-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    word-break: break-all;
    line-height: 1.2;
}

.media-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.media-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn {
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary { background: var(--primary); color: white; flex: 1; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-copied { background: var(--accent) !important; color: white !important; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: white; }

#toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

#toast.visible { opacity: 1; transform: translateY(0); }