.wp-block-openverse-connect-search {
    padding: 20px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    
    .openverse-search-controls {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 600px;
        
        .components-base-control {
            width: 100%;
        }
    }
    
    .openverse-search-interface .components-placeholder {
        min-height: 200px;
    }
    
    .openverse-results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        margin: 20px 0;
    }
    
    .openverse-result-item {
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 4px;
        overflow: hidden;
        transition: all 0.2s ease;
        
        &:hover {
            border-color: #007cba;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        
        img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
        }
    }
    
    .openverse-audio-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        height: 150px;
        padding: 10px;
        text-align: center;
        
        .dashicons {
            font-size: 48px;
            width: 48px;
            height: 48px;
            margin-bottom: 10px;
        }
        
        .openverse-audio-title {
            font-size: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }
    }
    
    .openverse-reset-selection {
        display: none;
    }
    
    .openverse-error-message {
        color: #cc1818;
        margin: 15px 0;
        padding: 10px;
        background: #f8d7da;
        border-radius: 4px;
    }
    
    .openverse-load-more {
        display: block !important;
        margin: 20px auto !important;
    }
}

.openverse-media-settings-dropdown-content {
    min-width: 320px;
    width: 400px;
    max-width: 90vw;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    .components-base-control {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .components-range-control {
        margin-bottom: 24px;
        width: 100%;
    }
    
    .components-base-control__help {
        margin-top: 6px;
        font-style: italic;
        font-size: 12px;
    }
    
    .components-text-control__input {
        width: 100%;
    }
    
    .components-select-control__input {
        width: 100%;
    }
    
    &::before {
        content: 'Media Settings';
        display: block;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .components-range-control__slider {
        width: 100%;
    }
    
    .components-toggle-control {
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .components-text-control__input {
        padding: 8px;
        height: auto;
    }
    
    .components-base-control__field {
        margin-bottom: 8px;
    }
    
    .components-base-control__label,
    .components-toggle-control__label {
        font-weight: 500;
        margin-bottom: 6px;
        display: block;
    }
}

.openverse-media-settings-dropdown-content {
    animation: openverseDropdownAppear 0.1s ease-out;
}

@keyframes openverseDropdownAppear {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.openverse-search-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    
    .openverse-cancel-search {
        margin-left: auto;
    }
} 