.dsm-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.dsm-card {
    background: #121212;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    border: 1px solid #2a2a2a;
}
.dsm-card-header h3 {
    margin: 0 0 4px;
    color: #ffffff;
}
.dsm-badge {
    display:inline-block;
    padding:2px 6px;
    border-radius:999px;
    font-size:11px;
    background:#93268F;
    color:#fff;
    margin-right:4px;
}
.dsm-description {
    color:#ddd;
    font-size:14px;
    margin-bottom:6px;
}
.dsm-audio {
    width:100%;
    margin:4px 0 8px;
}
.dsm-video-preview {
    width:100%;
    border-radius:6px;
    margin:4px 0 8px;
}
.dsm-license-form label {
    display:block;
    font-size:13px;
    color:#ccc;
    margin-bottom:4px;
}
.dsm-license-form input,
.dsm-license-form select {
    width:100%;
    padding:4px 6px;
    margin-top:2px;
    margin-bottom:6px;
    border-radius:4px;
    border:1px solid #444;
    background:#1b1b1b;
    color:#eee;
}
.dsm-btn-primary {
    background:#93268F;
    color:#fff;
    border:none;
    border-radius:4px;
    padding:6px 10px;
    cursor:pointer;
}
.dsm-btn-primary:hover {
    filter:brightness(1.1);
}
.dsm-btn-secondary {
    background:transparent;
    color:#93268F;
    border:1px solid #93268F;
    border-radius:4px;
    padding:6px 10px;
    cursor:pointer;
}
.dsm-license-view {
    background:#121212;
    color:#eee;
    padding:16px;
    border-radius:10px;
    max-width:480px;
}

.dsm-admin .dsm-admin-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap:12px;
}
.dsm-card-admin {
    border-radius:10px;
    padding:12px;
    background:#1d1d1d;
    border:1px solid #2a2a2a;
}
.dsm-card-admin-header {
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
    color:#fff;
}
.dsm-status-dot {
    width:10px;
    height:10px;
    border-radius:50%;
    background:#666;
}
.dsm-status-yellow .dsm-status-dot { background:#ffc400; }
.dsm-status-orange .dsm-status-dot { background:#ff8800; }
.dsm-status-red .dsm-status-dot { background:#ff3b30; }

/* Overlay */
#dsm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal-Container */
#dsm-modal {
    background: #121212;
    border-radius: 14px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 24px rgba(0,0,0,0.9);
    border: 1px solid #2a2a2a;
    position: relative;
}

/* Close-Button */
#dsm-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* Header */
#dsm-modal-header {
    padding: 16px 16px 8px;
    border-bottom: 1px solid #2a2a2a;
}
#dsm-modal-header h2 {
    margin: 0;
    color: #fff;
}

/* Media-Bereich */
#dsm-modal-media {
    padding: 8px 16px 0;
}
#dsm-modal-media audio,
#dsm-modal-media video {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #000;
}

/* Body (scrollbar) */
#dsm-modal-body {
    padding: 8px 16px 16px;
    overflow-y: auto;
    flex: 1;
}

/* Footer (sticky Button) */
#dsm-modal-footer {
    padding: 12px 16px 14px;
    border-top: 1px solid #2a2a2a;
    background: #121212;
}
.dsm-btn-full {
    width: 100%;
}

/* Formular-Elemente im Modal */
#dsm-modal-body label {
    display: block;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 4px;
}
#dsm-modal-body input,
#dsm-modal-body select {
    width: 100%;
    padding: 6px 8px;
    margin-top: 2px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #1b1b1b;
    color: #eee;
}
.dsm-form-group {
    margin-bottom: 8px;
}

/* Body-Scroll sperren, wenn Modal offen */
body.dsm-modal-open {
    overflow: hidden;
}

/* Mobile: Vollbild-Modal */
@media (max-width: 768px) {
    #dsm-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        border: none;
    }
}
